﻿@model EasyErp.Domain.OperationInfo

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>OperationInfo</legend>

        <div id="left-panel">
            <div class="editor-label">
                @Html.LabelFor(model => model.FacilityId, "FacilityInfo")
            </div>
            <div class="editor-field">
                @Html.DropDownList("FacilityId", String.Empty)
                @Html.ValidationMessageFor(model => model.FacilityId)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.SpecNo)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SpecNo)
                @Html.ValidationMessageFor(model => model.SpecNo)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.SpecDescription)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SpecDescription)
                @Html.ValidationMessageFor(model => model.SpecDescription)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.OperationDescription)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.OperationDescription)
                @Html.ValidationMessageFor(model => model.OperationDescription)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.BaseRateId, "BaseRateInfo")
            </div>
            <div class="editor-field">
                @Html.DropDownList("BaseRateId", String.Empty)
                @Html.ValidationMessageFor(model => model.BaseRateId)
            </div>
        </div>

        <div id="right-panel">
        
            <div class="editor-label">
                @Html.LabelFor(model => model.Caption)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Caption)
                @Html.ValidationMessageFor(model => model.Caption)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Sequence)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Sequence)
                @Html.ValidationMessageFor(model => model.Sequence)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Route)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Route)
                @Html.ValidationMessageFor(model => model.Route)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.PayMethod)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.PayMethod)
                @Html.ValidationMessageFor(model => model.PayMethod)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.MaxPaid)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.MaxPaid)
                @Html.ValidationMessageFor(model => model.MaxPaid)
            </div>

            <p>
                <input type="submit" value="Create" />
            </p>

        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
